package com.wn.prodmanagement.service.impl;

import com.wn.entity.MaterialApplication;
import com.wn.prodmanagement.mapper.MaterialApplicationMapper;
import com.wn.prodmanagement.service.MaterialApplicationService;
import com.wn.utils.CurrentTime;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: pms
 * @ClassName MaterialApplicationServiceImpl
 * @description:
 * @author: LRW
 * @create: 2022-10-26 21:14
 * @Version 1.0
 **/
@Service
public class MaterialApplicationServiceImpl implements MaterialApplicationService {

    @Autowired
    private MaterialApplicationMapper materialApplicationMapper;

    @Override
    public void add(MaterialApplication materialApplication) {
        materialApplication.setTime(CurrentTime.getCurrentTime());
        String no="MA"+ CurrentTime.getCurrentTimeString();
        materialApplication.setNo(no);
        materialApplicationMapper.add(materialApplication);
    }

    @Override
    public void update(MaterialApplication materialApplication) {

    }
}
